﻿namespace Longbow.Data
{
    /// <summary>
    /// 数据库配置类
    /// </summary>
    public class DatabaseOption
    {
        /// <summary>
        /// 是否保持 Connection 一直处于 Open 状态，此参数为 true 时必须显示手动调用 Dispose 方法
        /// </summary>
        public bool KeepAlive { get; set; }

        /// <summary>
        /// 数据库连接字符串
        /// </summary>
        public string ConnectionString { get; set; }

        /// <summary>
        /// 数据库类型 DatabaseProviderType 实体类中定义 默认 DatabaseProviderType.SqlServer 
        /// </summary>
        public DatabaseProviderType ProviderName { get; set; } = DatabaseProviderType.SqlServer;
    }
}
